package com.ruoyi.app.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.app.mapper.AppReturnReservationsMapper;
import com.ruoyi.app.domain.AppReturnReservations;
import com.ruoyi.app.service.IAppReturnReservationsService;

/**
 * 返校预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-04
 */
@Service
public class AppReturnReservationsServiceImpl implements IAppReturnReservationsService 
{
    @Autowired
    private AppReturnReservationsMapper appReturnReservationsMapper;

    /**
     * 查询返校预约
     * 
     * @param id 返校预约主键
     * @return 返校预约
     */
    @Override
    public AppReturnReservations selectAppReturnReservationsById(Long id)
    {
        return appReturnReservationsMapper.selectAppReturnReservationsById(id);
    }

    /**
     * 查询返校预约列表
     * 
     * @param appReturnReservations 返校预约
     * @return 返校预约
     */
    @Override
    public List<AppReturnReservations> selectAppReturnReservationsList(AppReturnReservations appReturnReservations)
    {
        return appReturnReservationsMapper.selectAppReturnReservationsList(appReturnReservations);
    }

    /**
     * 新增返校预约
     * 
     * @param appReturnReservations 返校预约
     * @return 结果
     */
    @Override
    public int insertAppReturnReservations(AppReturnReservations appReturnReservations)
    {
        return appReturnReservationsMapper.insertAppReturnReservations(appReturnReservations);
    }

    /**
     * 修改返校预约
     * 
     * @param appReturnReservations 返校预约
     * @return 结果
     */
    @Override
    public int updateAppReturnReservations(AppReturnReservations appReturnReservations)
    {
        return appReturnReservationsMapper.updateAppReturnReservations(appReturnReservations);
    }

    /**
     * 批量删除返校预约
     * 
     * @param ids 需要删除的返校预约主键
     * @return 结果
     */
    @Override
    public int deleteAppReturnReservationsByIds(Long[] ids)
    {
        return appReturnReservationsMapper.deleteAppReturnReservationsByIds(ids);
    }

    /**
     * 删除返校预约信息
     * 
     * @param id 返校预约主键
     * @return 结果
     */
    @Override
    public int deleteAppReturnReservationsById(Long id)
    {
        return appReturnReservationsMapper.deleteAppReturnReservationsById(id);
    }
}
